home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
PROGRAMR
/
SUBVBX.ZIP
/
SUBVBVW.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-13
|
2KB
|
89 lines
// subvbvw.cpp : implementation of the CSubvbxView class
//
#include "stdafx.h"
#include "subvbx.h"
#include "subvbdoc.h"
#include "subvbvw.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSubvbxView
IMPLEMENT_DYNCREATE(CSubvbxView, CFormView)
BEGIN_MESSAGE_MAP(CSubvbxView, CFormView)
//{{AFX_MSG_MAP(CSubvbxView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSubvbxView construction/destruction
CSubvbxView::CSubvbxView() : CFormView(IDD_FORM)
{
m_bFirstUpdate = TRUE;
}
CSubvbxView::~CSubvbxView()
{
}
/////////////////////////////////////////////////////////////////////////////
// CSubvbxView initial update
void CSubvbxView::OnInitialUpdate()
{
if(m_bFirstUpdate!=FALSE)
{
m_MyGrid.SubclassVBControl(this,IDC_MYGRID,TRUE);
m_bFirstUpdate = FALSE;
}
CFormView::OnInitialUpdate();
}
/////////////////////////////////////////////////////////////////////////////
// CSubvbxView drawing
void CSubvbxView::OnDraw(CDC* pDC)
{
CSubvbxDoc* pDoc = GetDocument();
// TODO: add draw code here
}
/////////////////////////////////////////////////////////////////////////////
// CSubvbxView diagnostics
#ifdef _DEBUG
void CSubvbxView::AssertValid() const
{
CFormView::AssertValid();
}
void CSubvbxView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
CSubvbxDoc* CSubvbxView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSubvbxDoc)));
return (CSubvbxDoc*) m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CSubvbxView message handlers